#####################################################################
## qtquickcontrols2imaginestyleimplplugin Plugin:
#####################################################################

set(qml_files
    "OpacityMask.qml"
)

qt_internal_add_qml_module(qtquickcontrols2imaginestyleimplplugin
    URI "QtQuick.Controls.Imagine.impl"
    VERSION "${PROJECT_VERSION}"
    CLASS_NAME QtQuickControls2ImagineStyleImplPlugin
    PLUGIN_TARGET qtquickcontrols2imaginestyleimplplugin
    NO_PLUGIN_OPTIONAL
    QML_FILES
        ${qml_files}
    IMPORTS
        QtQuick.Controls.impl/auto
    DEFINES
        QT_NO_CAST_FROM_ASCII
        QT_NO_CAST_TO_ASCII
    LIBRARIES
        Qt::CorePrivate
        Qt::Gui
        Qt::QmlPrivate
        Qt::QuickControls2ImplPrivate
        Qt::QuickPrivate
        Qt::QuickTemplates2Private
)

# Resources:
set(qmake_qtquickcontrols2imaginestyleimplplugin_resource_files
    "shaders/+glslcore/OpacityMask.frag"
    "shaders/+qsb/OpacityMask.frag"
    "shaders/OpacityMask.frag"
)

qt_internal_add_resource(qtquickcontrols2imaginestyleimplplugin "qmake_qtquickcontrols2imaginestyleimplplugin"
    PREFIX
        "qt-project.org/imports/QtQuick/Controls/Imagine/impl"
    FILES
        ${qmake_qtquickcontrols2imaginestyleimplplugin_resource_files}
)
